package day021.homework.p3;

import java.io.IOException;
import java.io.PrintStream;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一行字符串：");

        String line = sc.nextLine();

        PrintStream ps = new PrintStream("d.txt");
        ps.println(line);

        ps.close();
    }
}
